{extend name='public/layout'/}
<!-- 本页面要使用的css开始 -->
{block name='css'}
<link rel="stylesheet" href="__STATIC__/api/css/swiper-4.3.5.min.css?v={:time()}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/api/css/send-detail.css?v={:time()}" />
{/block}
<!-- 本页面要使用的css结束 -->
<!-- 本页面要使用的js开始 -->
{block name='js'}
<script src="__STATIC__/api/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/api/js/qrcode.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/api/js/send-detail.js" type="text/javascript" charset="utf-8"></script>
{/block}
<!-- 本页面要使用的js结束 -->
<!-- 页面主体开始 -->
{block name='app'}
<div class="wrap">
	<a href="javascript:void(0);" class="history" @click="goSend()">
		<i></i>
		<span>发放记录</span>
	</a>
	<div class="send-cont">
		<div class="voucher-none" v-if="code.rest_num==0">
			<img src="__STATIC__/api/images/noVoucher.png" alt="">
			<p>暂无优惠券</p>
		</div>
		<div class="voucher" v-else>
			<div class="code" ref="qrCodeUrl" id="qrcode"></div>
			<p class="refresh" @click="refresh()">刷新券 <i><img src="__STATIC__/api/images/icon/refresh.png" alt=""></i></p>
			<p class="remain">剩余：<span>{{code.rest_num}}</span>张</p>
		</div>
	</div>
	<div class="notice" v-if="code.attention == null">
		<p class="title">注意事项</p>
		<div class="cont">
			<p v-for="(item,index) in code.attention"></p>
		</div>
	</div>
</div>
{include file='public/copyright' /}
{/block}
<!-- 页面主体结束 -->

